.textbus-loading {
  height: 3px;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;

  &-active{
    background-color: rgba(0, 0, 0, .3);
    &:before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 20%;
      height: 100%;
      background-color: $color-primary;
      animation: textbus-loading infinite 1s linear;
    }
  }
}

@keyframes textbus-loading {
  0% {
    left: 0
  }
  100% {
    left: 100%
  }
}
